package com.xry.mapper;

import com.xry.bean.Brand;
import com.xry.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BrandDao {

    int add(@Param("param") Brand brand);

    int del(@Param("id") Integer id);

    int edit(@Param("param") Brand brand);

    List<Brand> all(@Param("param") Brand brand);

    Brand one(@Param("id") Integer id);

    int pageCount(@Param("param") Brand brand);

    List<Brand> page(@Param("page") Page page, @Param("param") Brand brand);


}
